﻿using OPCTreeMonitor.ToPLC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OPCTreeMonitor.Config
{
    public class PlcAttribute
    {
        /// <summary>
        /// PLC名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// PLC的序号
        /// </summary>
        public int Index { get; set; }
        /// <summary>
        /// 连接地址
        /// </summary>
        public string ConnectStr { get; set; }
        /// <summary>
        /// PLC通讯类型
        /// </summary>
        public PLCType TYPE { get; set; }
        /// <summary>
        /// 是否有引号
        /// </summary>
        public bool HasQuote { get; set; }
    }
    public class CommonConfig
    {
        public List<PlcAttribute> PLCS = new List<PlcAttribute>();
    }
}
